package com.kohler.blog.sms.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Value("${user.age}")
    private Integer age;

    @Value("${user.userName}")
    private String userName;

    @GetMapping("/test")
    public String test() {

        return "userName: " + userName + " age: " + age;
    }
}
